return function(var, lib, t, i)
	local x_pos = var.x_pos
	local y_pos = var.y_pos
	local max_width = var.max_width
	local max_height = var.max_height

	love.graphics.rectangle('fill', x_pos+(t[i].padding or 0), y_pos+(t[i].padding or 0), max_width*t[i].size-(t[i].padding or 0)*2, max_height-(t[i].padding or 0)*2, t[i].radius or 0)
	if t[i].content ~= nil then
		lib.render(t[i].content, x_pos, y_pos, max_width*t[i].size, max_height)
	end
	x_pos = x_pos + max_width * t[i].size

	return {
		x_pos = x_pos,
		y_pos = y_pos,
		max_width = max_width,
		max_height = max_height,
	} 
end